﻿#region Using

using System.ComponentModel;

#endregion Using

namespace T4_Eind_programma
{
    public class Order
    {
        #region Variable Declaration

        private int nummer;
        private string naam;
        private bool klaar;
        private BindingList<Mengbatch> mengbatchList = new BindingList<Mengbatch>();

        #endregion Variable Declaration

        #region Properties

        public int AantalMengbatches
        {
            get { return mengbatchList.Count; }
        }

        public bool Klaar
        {
            get { return klaar; }
            set { klaar = value; }
        }

        public BindingList<Mengbatch> MengbatchList
        {
            get { return mengbatchList; }
            set { mengbatchList = value; }
        }

        public string Naam
        {
            get { return naam; }
            set { naam = value; }
        }

        public int Nummer
        {
            get { return nummer; }
            set { nummer = value; }
        }

        #endregion Properties

        #region Constructor

        public Order(int nummer, string naam, bool klaar)
        {
            this.nummer = nummer;
            this.naam = naam;
            this.klaar = klaar;
        }

        #endregion Constructor
    }
}